package com.xvexi04;

public class Book {
    private  String Bookname;
    private   String author;
    private  String  publisher;
    private  double  price;

    public Book() {
    }

    public Book(String bookname, String author, String publisher, double price) {
        Bookname = bookname;
        this.author = author;
        this.publisher = publisher;
        this.price = price;
    }

    public String getBookname() {
        return Bookname;
    }

    public void setBookname(String bookname) {
        Bookname = bookname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    public  void  getBookinfo(){
        System.out.println(getBookname());
        System.out.println(getAuthor());
        System.out.println(getPublisher());
        System.out.println(getPrice());
    }
}
